#!/usr/bin/env python
# -*- coding: utf-8 -*-

import rospy
from pokemon_server.srv import Finish,FinishResponse
from   dest_info import *

def callbackFun(msg):
    index=msg.index
    change_state(index,2)
	# 反馈数据
    return FinishResponse("ok")

def finish_server():
	# ROS节点初始化
    rospy.init_node('finish_server')
	# 创建一个名为/show_stu的server，注册回调函数callbackFun
    s = rospy.Service('/finish', Finish, callbackFun)
    rospy.spin()

if __name__ == "__main__":
    finish_server()